<?php
namespace app\common\validate;

use think\Validate;

class GoodsDonate extends Validate
{
    protected $rule =   [
        'name'  => 'require',
        'cid1'   => 'require',
        'price'   => 'require',
        'is_new'   => 'require',
        'thumbnailimages'   => 'require',
        'username'   => 'require',
        'province'   => 'require',
        'city'   => 'require',
        'area'   => 'require',
        'address'   => 'require',
        'usemobile'   => 'require',
    ];

    protected $message  =   [
        'name.require' => '标题必须',
        'cid1.require' => '分类必须',
        'price.require' => '价格必须',
        'is_new.require' => '新旧程度必须',
        'thumbnailimages.require' => '图片必须',
        'username.require' => '姓名必须',
        'province.require' => '省份必须',
        'city.require' => '市必须',
        'area.require' => '区必须',
        'address.require' => '详细地址必须',
        'usemobile.require' => '手机号必须',
    ];
}